import axios from '../utils/axios'


//查询我的打卡任务 - 分页
export function getUserTaskListForPages(params) {
    return axios.get('/cUserTask/selectByExampleAndRowBounds', { params })
}

//新增打卡任务
export function createUserTask(params) {
    return axios.post('/cUserTask/', params)
}

//编辑打卡任务
export function editUserTask(params) {
    return axios.put(`/cUserTask/${params.id}`, params)
}

//删除打卡任务
export function deleteUserTask(params) {
    return axios.delete(`/cUserTask/${params.id}`)
}

// 获取打卡详情
export function getTaskInfo(params) {
    return axios.get('/cUserTask/selectByKey', { params })
}